package statickeyword;

public class SingletonHungry {
    private SingletonHungry() {
        System.out.println("调用了构造器");
    }


    private static SingletonHungry singletonHungry = new SingletonHungry();

    public static SingletonHungry getInstance() {
        return singletonHungry;
    }
}
